package cn.iocoder.yudao.module.mzt.controller.admin.article.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - 文章新增/修改 Request VO")
@Data
public class ArticleSaveReqVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "8132")
    private Long id;

    @Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "标题不能为空")
    private String title;

    @Schema(description = "图片", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "图片不能为空")
    private String cover;

    @Schema(description = "摘要")
    private String summary;

    @Schema(description = "内容", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "内容不能为空")
    private String content;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "状态不能为空")
    private Integer status;

    @Schema(description = "推荐", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "推荐不能为空")
    private Integer recommend;

    @Schema(description = "SEO标题")
    private String seoTitle;

    @Schema(description = "SEO关键词")
    private String seoKeywords;

    @Schema(description = "SEO描述", example = "你猜")
    private String seoDescription;

    @Schema(description = "分类名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "分类名字不能为空")
    private String categoryName;
    @Schema(description = "分类ID")
    private Long categoryId;
    @Schema(description = "绑定文章标签", example = "1")
    private List<Long> tagIds;

}
